home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Telnet 2.7b5 / source / Headers / TelnetHeader.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-03  |  1.3 KB  |  50 lines  |  [TEXT/CWIE]

  1. /****************************************************************
  2. *    NCSA Telnet for the Macintosh                                *
  3. *                                                                *
  4. *    National Center for Supercomputing Applications                *
  5. *    Software Development Group                                    *
  6. *    152 Computing Applications Building                            *
  7. *    605 E. Springfield Ave.                                        *
  8. *    Champaign, IL  61820                                        *
  9. *                                                                *
  10. *    Copyright (c) 1986-1994,                                    *
  11. *    Board of Trustees of the University of Illinois                *
  12. ****************************************************************/
  13.  
  14.  
  15. #define PATTERN(x) &x    
  16.  
  17. #if defined(powerc) || defined(__powerc)
  18. #define __powerpc__
  19. #endif
  20.  
  21. // Using settings of NO_UNIVERSAL and __powerpc__, set up our SIMPLE_UPP macro
  22.  
  23.  
  24. #define PROTO_UPP(routine, what)        \
  25. extern what##UPP routine##UPP
  26.  
  27. // Have universal headers, compiling PPC
  28. #ifdef    __powerpc__
  29. #define SIMPLE_UPP(routine,what)        \
  30. RoutineDescriptor routine##RD =    \
  31. BUILD_ROUTINE_DESCRIPTOR(upp##what##ProcInfo,routine);\
  32. what##UPP routine##UPP=(what##UPP)&routine##RD    \
  33.  
  34. #else    // ifdef __powerpc__
  35.  
  36. // Have universal headers, compiling 68K
  37. #define    SIMPLE_UPP(routine,what)        \
  38. what##UPP routine##UPP=(what##UPP)&routine
  39.  
  40. #endif    // ifdef __powerpc__
  41.  
  42. // Some random things that used to be in typedefs.h
  43. typedef unsigned char * BytePtr;
  44.  
  45. #define    UNUSED_ARG(x)
  46.  
  47. #include <MacTCP.h>
  48. #include "globaldefs.h"
  49. #include "Preferences.h"
  50.